package com.example.mytips.structure;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.KeyboardShortcut;
import com.intellij.openapi.keymap.KeymapManager;
import com.intellij.openapi.keymap.KeymapUtil;

import javax.swing.*;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;

public class RefreshPositonAction extends AnAction {


    @Override
    public void actionPerformed(AnActionEvent event) {
        // 触发的操作
        System.out.println("Command + F1 Detected! Performing my action...");
    }

}